<include file="Public/top" title = "里程密-会员查看" />
        <!-- start left -->
<include file="Public/left"/>
        <div id="page-wrapper" class="gray-bg dashbard-1">
        <!-- start top -->
        <include file="Public/top"/>
        <!-- end top -->
        <div class="row wrapper border-bottom white-bg page-heading">
                <div class="col-lg-10">
                    <h2>会员查看</h2>
                </div>
                <div class="col-lg-2">

                </div>
            </div>
            <div class="row">
                <div class="col-lg-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>爱我所选，选我所爱，爱里程密，爱生活！</h5>
                        <div class="ibox-tools">
                            <a class="collapse-link">
                                <i class="fa fa-chevron-up"></i>
                            </a>
                            <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <ul class="dropdown-menu dropdown-user">
                                <li><a href="#">Config option 1</a>
                                </li>
                                <li><a href="#">Config option 2</a>
                                </li>
                            </ul>
                            <a class="close-link">
                                <i class="fa fa-times"></i>
                            </a>
                        </div>
                    </div>
                    <div class="ibox-content">

                    <table class="table table-striped table-bordered table-hover dataTables-example" >
                    <thead>
                    <tr>
                        <th>序号</th>
                        <th>用户权限</th>
                        <th>用户名</th>
                        <th>昵称</th>
                        <th>上次登录时间</th>
                        <th>当前权限</th>
                        <th>状态</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <foreach name="userlist" item="vo" key="k">
                    <tr class="gradeU">
                        <td><{$k+1}></td>
                        <td><?php if($vo['power'] == 2){ ?>
                            <select name="pow" id="">
                        
                                <option value="2">超级管理员</option>

                            </select>  
                        <?php }else{ ?>
                        <form action ="__MODULE__/User/power" method="post">
                            <select name="pow" id="">
                                <option disabled="" value="" selected>更改权限</option>
                                <option value="1">普通管理员</option>
                               
                                <option value="0">会员</option>
                                
                            </select>
                            <input type = "hidden" name="userid" value ="<{$vo.id}>">
                            <input type ="submit" value ="更改权限">
                           </form>
                        <?php } ?>    
                        </td>
                        <td><{$vo.username}></td>
                        <td><{$vo.nickname}></td>
                        <td><{$vo.logintime|date = 'Y-m-d H:i:s',###}></td>
                        <td><?php 
                            if($vo['power'] == 0){
                                echo '会员';
                            }elseif($vo['power'] == 1){
                                echo '普通管理员';    
                            }else{
                                echo '<font color="red">超级管理员</font>';
                            }    



                        ?></td>
    
                        <td><if condition = "$vo.status eq 1"><span style = "color:red;">禁用</span><else />启用</if></td>
                        <td>
                           <a href="__APP__/Home/Blog/index/id/<{$vo.id}>" target="_blank">查看</a>
                           <span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                           <?php if($vo['power'] != 2){?>
                            <a href="__URL__/xianshi/id/<{$vo.id}>" onclick = "return shifou();">启用</a>
                            <span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                            <a href="__URL__/jinyong/id/<{$vo.id}>" onclick = "return shifou();">禁用</a>
                            <span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                            <a href="__URL__/delete/id/<{$vo.id}>" style="color:red" onclick = "return shifou();">删除</a>
                           <?php } ?> 
                        </td>
                    </tr>
                    </foreach>
                    </tbody>

                    </table>
                     <{$page}>
                    </div>
                </div>
            </div>
            </div>

    <!-- start footer -->
                    <include file="Public/footer" />
            <!-- end footer -->
        </div>
    <!-- Data Tables -->
    <script src="__PUBLIC__/Admin/js/plugins/dataTables/jquery.dataTables.js"></script>
    <script src="__PUBLIC__/Admin/js/plugins/dataTables/dataTables.bootstrap.js"></script>
    <script src="__PUBLIC__/Admin/js/plugins/dataTables/dataTables.responsive.js"></script>
    <script src="__PUBLIC__/Admin/js/plugins/dataTables/dataTables.tableTools.min.js"></script>
